<?php
/************评论模板*******************/
if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) :
?>
<p><?php _e('输入密码查看评论.'); ?></p>
<?php return; endif; ?>
<div class="commentTitle">评论</div>
<div class="findComment">
<?php if ( $comments ) : ?>
	<div class="findUp"></div>
	<div id="li-comment-new"></div>
	<?php wp_list_comments(array( 'style'=>'div','callback' => 'uctheme_wp_comment' )); ?>
	<div name="commentnaviBottom" id="commentnaviBottom"></div>
	<div class="pageBotBox" id="commentnavi"><div class="page">
	<?php paginate_comments_links() ?></div></div>
	<div class="clear"></div>
<?php else :?>
	<p><?php _e('暂时木有评论.'); ?></p>
<?php endif; ?>
</div>
<br />
<?php if ( comments_open() ) : ?>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>

<p><?php printf(__('你需要先 <a href="%s">登录</a> 才能发表评论.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
<?php else : ?>

<?php $defaults = array(
	'comment_field'        => '<p ><textarea style=" width:100%; border:1px solid #ddd" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
	'comment_notes_before' => '',
	'label_submit'         => __( '提交评论' ),
	'comment_notes_after' =>''
);
comment_form($defaults); 
endif;
else :  ?>


<p><?php _e('对不起评论已经关闭.'); ?></p>
<?php endif; ?>